# -*- coding: utf-8 -*-
"""
@Author: thekernel
@Date: 2020/5/28 10:24
@Description: 超级鹰API 使用方法
"""
from chao_ji_ying_client import Chaojiying_Client

# 超级鹰平台 识别验证码
username = "thekernel"
password = "Kernel990621"
soft_id = "ab35607581d4ae6281c720e4f39cfd9b"
chaojiying = Chaojiying_Client(username, password, soft_id)
im = open('verify_code.jpg', 'rb').read()
result = chaojiying.PostPic(im, 1902)
# {
#     'err_no': 0,
#     'err_str': 'OK',
#     'pic_id': '9105909594337300001',
#     'pic_str': 'ang5',
#     'md5': '06f5c29f9c5915375157abf44c3f1bd5'
# }
code = result["pic_str"]
